function y = qdp(x)
% Quadratic Diagonal Perturbed Function  
%x0=[0.5, 0.5, ..., 0.5].  
%fmin=n/2
%Author:shi yangyang
n = length(x);
y = ones(1,n);
temp1 = 0;
temp2 = 0;
for i = 1:1:n
    temp1 = temp1+x(i);
end
for i = 1:1:n
    temp2 = temp2+(i/100)*(x(i)^2);
end
y = temp1^2+temp2;
